for i in range(11):
    if (i + 1) % 5 == 1:
        print("+"+"+".center(9, '-')+"+")
    else:
        print("|"+"|".center(9, ' ')+"|")
